<?php error_reporting(0) ?>
				<div class="navbar" >
					<div class="navbar-inner" style="position:relative">
						<h6>PROJECT</h6>
						<ul class="nav pull-right" style="position:relative;z-index:3">
							<li><a href="JavaScript:_CP.onSave()"><i class="icon-save"></i>DONE</a></li>
							<li><a href="JavaScript:_CP.onCancel()"><i class="ico-list"></i>CANCEL</a></li>
						</ul>
					</div>
				</div>
<input 
    type="hidden" 
    value="<?php echo $item->Id ?>" 
    id="Id" name="Id"
    />
<form id="_form_edit_panel" name="_form_edit_panel" 
      action="" method="POST" onsubmit="return false;"
      target="integration_asynchronous" autocomplete="off">
    <div class="widget row-fluid">
        <div class="well form-horizontal">

            <div class="control-group">
                <label class="control-label"><?php echo $langs['title']?> :</label>
                <div class="controls">
                    <input type="text"
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="Title" name="Title" 
                           onblur="AliasTo('#Title', '#Alias');"
                           value="<?php echo quotes_to_entities($item->Title) ?>"
                           />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Alias :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12 validate[required]"
                           data-prompt-position="topLeft:-1,-5"
                           id="Alias" name="Alias" 
                           value="<?php echo quotes_to_entities($item->Alias) ?>"
                           />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"><?php echo $langs['image']?> :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12"
                           id="Thumb" name="Thumb" 
                           value="<?php echo quotes_to_entities($item->Thumb) ?>"
                           />
                    <i class="icon-eye-open field-icon" style="right: auto;left: -12px" 
						title="<img width=40 src='<?php echo quotes_to_entities($item->Thumb) ?>'/>"></i>
                    <i class="icon-picture field-icon" 
                       onclick="BrowseServer('#Thumb')"
                       title="<?php echo $langs['choosefromserver']?>"></i>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"><?php echo $langs['desc']?>:</label>
                <div class="controls">
                    <textarea 
                        rows="5" cols="5" 
                        id="Desc" name="Desc" class="span12"
                        ><?php echo quotes_to_entities($item->Desc) ?></textarea>
                </div>
            </div>



            <div class="control-group">
                <label class="control-label"><?php echo $langs['tag']?> :</label>
                <div class="controls">
                    <input type="text" 
                           class="span12"
                           id="Tag" name="Tag" 
                           value="<?php echo quotes_to_entities($item->Tag) ?>"
                           />
                </div>
            </div>

            
            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <div class="controls">
                    <div class="row-fluid">
                        <div class="span6">
                            <select id="Status" name="Status" class=" span12">
                                <option value="true" <?php if ($item->Status != 'false') echo 'selected=1' ?>><?php echo $langs['enable']?></option>
                                <option value="false"><?php echo $langs['disable']?></option>
                            </select>
                            <span class="help-block"><?php echo $langs['status']?></span>
                        </div>
                        <div class="span6">
                            <input type="number" class="span12"
                                   id="Position" name="Position" 
                                   value="<?php echo $item->Position ?>"
                                   />
                            <span class="help-block -align-center"><?php echo $langs['position']?></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="control-group">
                <div><?php echo $langs['content']?> :</div>
                <div>
                    <textarea id="Content" name="Content" 
                              class="auto span12" 
                              data-prompt-position="topLeft:-1,-5"
                              rows="3"><?php echo ($item->Content) ?></textarea>
                </div>
            </div>
	
			<div class="control-group">
                <div>Photo & Video :</div>
                <div>
                    <textarea id="Content2" name="Content2" 
                              class="auto span12" 
                              data-prompt-position="topLeft:-1,-5"
                              rows="3"><?php echo ($item->Content2) ?></textarea>
                </div>
            </div>



            <div class="control-group">
                <div>
                    <?php if (!empty($item->Insert)) echo "Created  : $item->Insert" ?>
                </div>
                <div>
                    <?php if (!empty($item->Update)) echo "Modified : $item->Update" ?>
                </div>
                <div style="padding-top: 12px;text-align:center">
                    <button class="base_button base_green base-small-border-radius" onclick="_CP.onSave();"><span><?php echo $langs['done']?></span></button>
                    <button class="base_button base_red base-small-border-radius" onclick="_CP.onCancel();"><?php echo $langs['cancel']?></button>
                </div>
            </div>
        </div>
    </div>










</form>